FLAG_ANCHOR = 0
FLAG_POS_CROSS_DOM = 1
FLAG_POS_IN_DOM = 2
FLAG_NEG_CROSS_DOM = 3
FLAG_NEG_IN_DOM = 4
